# -*- coding: utf-8 -*-

from django import forms

from cursos.models import Persona, Entidad

class FormAdminPersona(forms.ModelForm):
    
    entidad = forms.ChoiceField(choices=[('','---------')] + [(e.codigo,e.nombre) for e in Entidad.objects.all()],widget=forms.Select())
    municipio = forms.ChoiceField(choices=[('','---------')],widget=forms.Select())
    parroquia = forms.ChoiceField(choices=[('','---------')],widget=forms.Select())
    
    telefono_2 = forms.CharField(label=(u"Otro teléfono"), required=False, max_length=15, widget=forms.TextInput())
    
    class Meta:
        model = Persona
    
    
class FormAdminProfesion(forms.ModelForm):
    
    observaciones = forms.CharField(label=(u"Observaciones"), required=False,max_length=15, widget=forms.Textarea()) 